
/*********************************短租*************************************/

/**
 * 短租下单确认
 */
export function shortConfirmationOrder(data) {
	return uni.$u.http.post('api/order/confirmationOrder', data, {});
}

/**
 * 短租下单
 */
export function shortPayOrder(data) {
	return uni.$u.http.post('api/order/payOrder', data, {});
}

/**
 * 短租取消订单
 */
export function shortCancelOrder(params) {
	return uni.$u.http.get('api/order/cancelOrder/' + params);
}

/**
 * 短租订单退款
 */
export function shortRefundOrder(params) {
	return uni.$u.http.get('api/order/refundOrder/' + params);
}

/**
 * 下单选择优惠券
 */
export function memberCouponList(data) {
	return uni.$u.http.post('api/coupon/memberCouponList', data, {});
}

/**
 * 短租订单列表
 */
export function orderShortList(data) {
	return uni.$u.http.post('api/order/apiOrderShortList', data, {});
}

/**
 * 短租订单详情
 */
export function orderShortInfo(data) {
	return uni.$u.http.post('api/order/apiOrderShortInfo', data, {});
}

/**
 * 短租押金退款
 */
export function apiOrderDepositRefund(data) {
	return uni.$u.http.post('api/order/apiOrderDepositRefund', data, {});
}

/**
 * 短租交验车单据
 */
export function vehicleExaminationDocuments(data) {
	return uni.$u.http.post('api/order/vehicleExaminationDocuments', data, {});
}

/**
 * 短租订单详情二次拉起支付
 */
export function shortAgainPayOrder(data) {
	return uni.$u.http.post('api/order/againPayOrder', data, {});
}

/**
 * 短租退款明细
 */
export function apiOrderDepositRefundInfo(data) {
	return uni.$u.http.post('api/order/apiOrderDepositRefundInfo', data, {});
}

/**
 * 退车确认页面
 */
export function liquidatedDamages(params) {
	return uni.$u.http.get('api/order/liquidatedDamages/' + params);
}

/*********************************豪车*************************************/

/**
 * 豪车确认下单
 */
export function luxuryConfirmationOrder(data) {
	return uni.$u.http.post('api/luxuryOrder/confirmationOrder', data, {});
}

/**
 * 豪车下单
 */
export function luxuryPayOrder(data) {
	return uni.$u.http.post('api/luxuryOrder/payOrder', data, {});
}

/**
 * 豪车订单退款
 */
export function luxuryRefundOrder(params) {
	return uni.$u.http.get('api/luxuryOrder/refundOrder/'+ params);
}

/**
 * 豪车取消订单
 */
export function luxuryCancelOrder(params) {
	return uni.$u.http.get('api/luxuryOrder/cancelOrder/'+ params);
}

/**
 * 豪车订单列表
 */
export function luxuryOrderList(data) {
	return uni.$u.http.post('api/luxuryOrder/apiOrderShortList', data, {});
}

/**
 * 豪车订单详情
 */
export function luxuryOrderInfo(data) {
	return uni.$u.http.post('api/luxuryOrder/apiOrderShortInfo', data, {});
}


/**
 * 豪车押金退款
 */
export function luxuryOrderDepositRefund(data) {
	return uni.$u.http.post('api/luxuryOrder/apiOrderDepositRefund', data, {});
}

/**
 * 豪车交验车单据
 */
export function luxuryOrderVehicleExaminationDocuments(data) {
	return uni.$u.http.post('api/luxuryOrder/vehicleExaminationDocuments', data, {});
}

/**
 * 豪车订单详情二次拉起支付
 */
export function luxuryOrderAgainPayOrder(data) {
	return uni.$u.http.post('api/luxuryOrder/againPayOrder', data, {});
}

/**
 * 豪车退款明细
 */
export function luxuryOrderDepositRefundInfo(data) {
	return uni.$u.http.post('api/luxuryOrder/apiOrderDepositRefundInfo', data, {});
}

//车辆随车物品

export function car_accessories() {
	return uni.$u.http.get('/api/dict/data/type/car_accessories');
}


export function carOilQuantity(params) {
	return uni.$u.http.get('/api/car/carCurrData?'+'id='+params);
}
/**
 * 发送车钥匙设备命令

 */
export function vehiclekeyCommand(data) {
	return uni.$u.http.post('/api/car/sendCarKeysinstruction', data, {});
}
/**
 * 获取当前车辆绑定设备数据
 */
export function getCarOilQuantity(params) {
	return uni.$u.http.get('/api/car/getBindDeviceNo?'+'id='+params);
}

/**
 * 获取当前车辆定位信息
 */
export function getCarLoation(params) {
	return uni.$u.http.get('/api/car/getDeviceNoInfo?'+'deviceNo='+params);
}


/**
 * 新增交车验车单
 */
export function handoverCar(data) {
	return uni.$u.http.post('/api/order/apiDelivery', data, {});
}

/**
 * 获取订单是否需要退款
 */
export function orderType(params) {
	return uni.$u.http.get('/api/order/isEarlyReturn/'+params);
}

/**
 * 获取提前还车订单详情
 */
export function getEarlyReturnDetail(data) {
	return uni.$u.http.post('/api/order/apiEarlyReturnDetail', data, {});
}

/**
 * 提前还车提交
 */
export function postEarlyReturnOrder(data) {
	return uni.$u.http.post('/api/order/apiEarlyReturn', data, {});
}
